package com.blb.marrysystem.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blb.marrysystem.entity.*;
import com.blb.marrysystem.entity.dto.DetailsPackageDto;
import com.blb.marrysystem.entity.dto.DetailsRoomDto;
import com.blb.marrysystem.entity.dto.HotelDto;
import com.blb.marrysystem.entity.dto.HotelPackageDto;

import java.util.List;


/**
 * (TbHotel)表服务接口
 *
 * @author makejava
 * @since 2023-01-11 09:22:29
 */
public interface TbHotelService extends IService<TbShoppingcart> {

    /**
     * 通过ID查询单条数据
     *
     * @param hotelId 主键
     * @return 实例对象
     */
    TbHotel queryById(Integer hotelId);

    /**
     * 分页查询
     *

     * @return 查询结果
     */
    Page<HotelDto> queryByPage(Integer begin,String latest,String search);

    /**
     * 新增数据
     *
     * @param tbHotel 实例对象
     * @return 实例对象
     */
    TbHotel insert(TbHotel tbHotel);

    /**
     * 修改数据
     *
     * @param tbHotel 实例对象
     * @return 实例对象
     */
    TbHotel update(TbHotel tbHotel);

    /**
     * 通过主键删除数据
     *
     * @param hotelId 主键
     * @return 是否成功
     */
    boolean deleteById(Integer hotelId);

    List<DetailsRoomDto> detailsRoomList(HotelDto hotelDto);

    List<TbInformation> detailsInformation(HotelDto hotelDto);

    List<DetailsPackageDto> detailsPackage(HotelDto hotelDto);

    TbPackage packageInformation(String packageId);

    List<HotelDto> hotelList();

    List<DetailsPackageDto> otherPackageInformation(String packageId, Integer tbHotelHotelId);

    List<HotelPackageDto> selectHotelList();

    TbUser login(String telephoneNumber, String password) throws Exception;

    void register(String telephoneNumber,String passWord) throws Exception;

    List<TbShoppingcart> shopCart(String userTel);

    void shopPingCartInsert(TbShoppingcart tbShoppingcart);

    void computer(String number, String shopId);

    List<TbOrder> order(String userTel);

    void orderInsert(TbOrder tbOrder);
}
